<template>
	<view class="orders">
		<!-- 头部 -->
		<view class="top">
			<uv-tabs :list="list"
				activeStyle="color: #1d8b8c;background-color: #fff;padding: 10rpx 89rpx;border-radius: 50rpx;"
				inactiveStyle="color:#fff" lineWidth='0' @click="click" :scrollable="false"></uv-tabs>
		</view>
		<!-- 上门自提-->
		<view v-if="current== 0" class="box">
			<view class="box1"  @click="goStoreList">
				<bezel1></bezel1>
			</view>
			<!-- 宠物信息 -->
			<view class="box2">
				<view class="box21">
					<view class="bxo1left">
						<image src="/static/image/篮球鞋.jpg" mode="" />
					</view>
					<view class="bxo1right">
						<view class="bxo1right1">
							薄荷绿郭艾伦实战篮球鞋 黑白
							<view style="color: #ababab;">×1</view>
						</view>
						<view class="bxo1right2">
							规格一
						</view>
						<view>
							￥45
						</view>
					</view>
				</view>
				<view class="box22">
					<view class="">运费</view>
					<view style="color: red;">￥1.00</view>
				</view>
			</view>

			<!--  备注信息-->
			<view class="box4">
				<view class="">备注信息(150字以内)</view>
				<textarea placeholder="请输入" cols="30" rows="10"></textarea>
			</view>
			<!-- 支付方式 -->
			<view class="box4">
				<view class="">选择支付方式</view>
				<view class="box41">
					<view class="left">
						<view class="photo">
							<image src="../../static/image/微信.png" mode=""></image>
						</view>
						<view style="margin-left: 20rpx;">微信支付</view>
					</view>
					<view class="right">
						<uv-radio-group>
							<uv-radio name="1" activeColor="#008c8c"></uv-radio>
						</uv-radio-group>
					</view>
				</view>
				<view class="box41">
					<view class="left">
						<view class="photo">
							<image src="../../static/image/余额.png" mode=""></image>
						</view>
						<view style="margin-left: 20rpx;">余额支付</view>
					</view>
					<view class="right">
						<uv-radio-group>
							<uv-radio name="2" activeColor="#008c8c"></uv-radio>
						</uv-radio-group>
					</view>
				</view>
			</view>
			<!--  支付方式-->
			<view class="box5">
				<view class="box51">
					<view class="box51-left">
						<view>实付</view>
						<view style="color: red;display: flex; align-items: center;">￥<view style="font-size: 1.1rem;">200</view>
						</view>
					</view>
					<view class="box51-right">
						<button class="but">立即预约</button>
					</view>
				</view>
			</view>
		</view>
		<!-- 快递发货 -->
		<view v-if="current== 1" class="box">
			<view class="box1" @click="goaddress">
				<bezel></bezel>
			</view>
			<!-- 宠物信息 -->
			<view class="box2">
				<view class="box21">
					<view class="bxo1left">
						<image src="/static/image/篮球鞋.jpg" mode="" />
					</view>
					<view class="bxo1right">
						<view class="bxo1right1">
							薄荷绿郭艾伦实战篮球鞋 黑白
							<view style="color: #ababab;">×1</view>
						</view>
						<view class="bxo1right2">
							规格一
						</view>
						<view>
							￥45
						</view>
					</view>
				</view>
				<view class="box22">
					<view class="">运费</view>
					<view style="color: red;">￥1.00</view>
				</view>
			</view>

			<!--  备注信息-->
			<view class="box4">
				<view class="">备注信息(150字以内)</view>
				<textarea placeholder="请输入" cols="30" rows="10"></textarea>
			</view>
			<!-- 支付方式 -->
			<view class="box4">
				<view class="">选择支付方式</view>
				<view class="box41">
					<view class="left">
						<view class="photo">
							<image src="../../static/image/微信.png" mode=""></image>
						</view>
						<view style="margin-left: 20rpx;">微信支付</view>
					</view>
					<view class="right">
						<uv-radio-group>
							<uv-radio name="1" activeColor="#008c8c"></uv-radio>
						</uv-radio-group>
					</view>
				</view>
				<view class="box41">
					<view class="left">
						<view class="photo">
							<image src="../../static/image/余额.png" mode=""></image>
						</view>
						<view style="margin-left: 20rpx;">余额支付</view>
					</view>
					<view class="right">
						<uv-radio-group>
							<uv-radio name="2" activeColor="#008c8c"></uv-radio>
						</uv-radio-group>
					</view>
				</view>
			</view>
			<!--  支付方式-->
			<view class="box5">
				<view class="box51">
					<view class="box51-left">
						<view>实付</view>
						<view style="color: red;display: flex; align-items: center;">￥<view style="font-size: 1.1rem;">200</view>
						</view>
					</view>
					<view class="box51-right">
						<button class="but">立即预约</button>
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	import bezel1 from "@/components/bezel1/bezel1.vue"
	import bezel from "@/components/bezel/bezel.vue"

	export default {

		components: {
			bezel1
		},
		data() {
			return {
				current: '',
				list: [{
					name: '上门自提',
				}, {
					name: '快递发货',
				}, ]
			}
		},
		methods: {
			// 跳收货地址
			goaddress(){
								uni.navigateTo({ url: '/pages/deliveryaddress/deliveryaddress' })
			},
			// 跳转门店列表
			goStoreList(){
				uni.navigateTo({ url: '/pages/storelist/storelist' })
			},
			click(item) {
				this.current = item.index
				console.log('item', item);
			},
			click1(item) {
				this.current1 = item.index
				console.log('item', item);
			}
		}
	}
</script>

<style lang="scss">
	@import url("placeorder.scss");
</style>